{extend name="layout" /}
{block name="content"}
    <div class="layui-form" lay-filter="LAY-set-nav-form" id="LAY-set-nav-form">
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="{$nav.name|default=''}" lay-verify="required"
                       placeholder="请输入..." autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-inline">
                <input type="number" name="sort" value="{$nav.sort|default=0}" lay-verify="required"
                       placeholder="请输入..." autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="status" lay-verify="required">
                    <option value="1" {if $nav && $nav.status == '1'}selected{/if}>启用</option>
                    <option value="0" {if $nav && $nav.status == '0'}selected{/if}>禁用</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-set-nav-submit" id="LAY-set-nav-submit" value="确认">
        </div>
    </div>
{/block}
{block name="js"}
<script>
    layui.use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
    })
</script>
{/block}